package com.ruoyi.business.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 植物工厂产值对象 bus_zhnc_plant
 * 
 * @author ruoyi
 * @date 2023-08-01
 */
public class BusZhncPlant extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** id */
    private Long id;

    /** 时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date time;

    /** 叶草类 */
    @Excel(name = "叶草类")
    private Long leaf;

    /** 果蔬类 */
    @Excel(name = "果蔬类")
    private Long fruit;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setTime(Date time) 
    {
        this.time = time;
    }

    public Date getTime() 
    {
        return time;
    }
    public void setLeaf(Long leaf) 
    {
        this.leaf = leaf;
    }

    public Long getLeaf() 
    {
        return leaf;
    }
    public void setFruit(Long fruit) 
    {
        this.fruit = fruit;
    }

    public Long getFruit() 
    {
        return fruit;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("time", getTime())
            .append("leaf", getLeaf())
            .append("fruit", getFruit())
            .toString();
    }
}
